<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="style.css" />
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Color switcher!</title>
    <style>
        @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap");
* {
  font-family: "Roboto", sans-serif;
  padding: 0;
  margin: 0;
}
body {
  background-image: url("https://itu.edu/wp-content/uploads/2020/09/gradient-background-02.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-image: url("https://99designs-blog.imgix.net/blog/wp-content/uploads/2018/12/Gradient_builder_2.jpg?auto=format&q=60&w=1815&h=1361.25&fit=crop&crop=faces");
  background-size: cover;
  border-radius: 15px;
  padding: 50px 50px 20px 50px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

label {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

p {
  margin-bottom: 5px;
}

input {
  display: block;
  margin-bottom: 25px;
}

input[type="text"] {
  padding: 10px 10px;
  border: none;
  border-radius: 10px;
}
.box {
  height: 70px;
  width: 100%;
  background: rgb(7, 104, 143);
  margin-bottom: 25px;
  border-radius: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.toggleText {
  font-size: 18px;
}
#toggleBtn {
  padding: 5px;
  margin: 0 10px;
  background-color: gray;
  width: 60px;
  height: 30px;
  border-radius: 30px;
  cursor: pointer;
}
#innerCirlce {
  background-color: white;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  transition: all 250ms;
}

.toggle-btn.toggled > .inner-circle {
  background-color: #333 !important;
  transform: translateX(30px);
  transition: 250ms;
}

.unselected {
  opacity: 0.5;
  transition: 0.25s;
}

    </style>
  </head>
  <body>
    <div class="container">
      <h1 class="ttile">Lighten / Darken color!</h1>
      <label for="hex">Color (Hex): </label>
      <input type="text" name="hex" id="hexInput" placeholder="#000000" />

      <div class="toggle">
        <p id="lightenText" class="toggleText">Lighten</p>
        <div id="toggleBtn" class="toggle-btn">
          <div id="innerCirlce" class="inner-circle"></div>
        </div>
        <p id="darkenText" class="toggleText">Darken</p>
      </div>

      <label for="slider" id="sliderText">0%</label>
      <input
        type="range"
        min="0"
        max="100"
        value="0"
        name="slider"
        id="sliderEl"
        class="sliderEl"
      />
      <p>Input color:</p>
      <div id="inputColor" class="box"></div>
      <p id="alteredColorText">Altered color:</p>
      <div id="alteredColor" class="box"></div>
    </div>
    <script src="index.js"></script>
  </body>
</html>
